package pojo.entity;

import java.time.LocalDateTime;

public class SysRole {

  private long id;
  private String code;

  private String roleName;
  private long createdUserId;
  private LocalDateTime createdTime;
  private long updatedUserId;
  private LocalDateTime updatedTime;

  public SysRole() {
  }

  public SysRole(long id, String code,  String roleName, long createdUserId, LocalDateTime createdTime, long updatedUserId, LocalDateTime updatedTime) {
    this.id = id;
    this.code = code;
    this.roleName = roleName;
    this.createdUserId = createdUserId;
    this.createdTime = createdTime;
    this.updatedUserId = updatedUserId;
    this.updatedTime = updatedTime;
  }

  /**
   * 获取
   * @return id
   */
  public long getId() {
    return id;
  }

  /**
   * 设置
   * @param id
   */
  public void setId(long id) {
    this.id = id;
  }

  /**
   * 获取
   * @return code
   */
  public String getCode() {
    return code;
  }

  /**
   * 设置
   * @param code
   */
  public void setCode(String code) {
    this.code = code;
  }

  /**
   * 获取
   * @return roleName
   */
  public String getRoleName() {
    return roleName;
  }

  /**
   * 设置
   * @param roleName
   */
  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  /**
   * 获取
   * @return createdUserId
   */
  public long getCreatedUserId() {
    return createdUserId;
  }

  /**
   * 设置
   * @param createdUserId
   */
  public void setCreatedUserId(long createdUserId) {
    this.createdUserId = createdUserId;
  }

  /**
   * 获取
   * @return createdTime
   */
  public LocalDateTime getCreatedTime() {
    return createdTime;
  }

  /**
   * 设置
   * @param createdTime
   */
  public void setCreatedTime(LocalDateTime createdTime) {
    this.createdTime = createdTime;
  }

  /**
   * 获取
   * @return updatedUserId
   */
  public long getUpdatedUserId() {
    return updatedUserId;
  }

  /**
   * 设置
   * @param updatedUserId
   */
  public void setUpdatedUserId(long updatedUserId) {
    this.updatedUserId = updatedUserId;
  }

  /**
   * 获取
   * @return updatedTime
   */
  public LocalDateTime getUpdatedTime() {
    return updatedTime;
  }

  /**
   * 设置
   * @param updatedTime
   */
  public void setUpdatedTime(LocalDateTime updatedTime) {
    this.updatedTime = updatedTime;
  }

  public String toString() {
    return "SysRole{id = " + id + ", code = " + code  + ", roleName = " + roleName + ", createdUserId = " + createdUserId + ", createdTime = " + createdTime + ", updatedUserId = " + updatedUserId + ", updatedTime = " + updatedTime + "}";
  }
}
